package com.alex.space.commons.date.expression;

/**
 * @author Alex
 *         Created by Alex on 2017/12/21.
 *         <p>
 *         相对日期
 */
public class RelativeExpression extends DateExpression {

    @Override
    protected String getRegEx() {
        return "[1-9]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\\|(0|[1-9]\\d?\\d?)[ymdwq]";
    }

    @Override
    protected ExpressionModel getModel() {
        return ExpressionModel.Relative;
    }

}
